<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  created() {
    if (localStorage.activityId) {
      // 存储的vuex中
      this.$store.dispatch(
        "setActivityId",
        localStorage.getItem("activityId") - 0
      );
    }
    // this.$router.push({
    //   name: "home"
    // });
  }
};
</script>

<style>
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}
html,
body {
  width: 100%;
  height: 100% !important;
  padding-top: 1px;
}
#app {
  width: 100%;
  height: 100% !important;
  background: #f8f8f8;
  padding: 1px 0px 0px 0px !important;
  overflow-y: scroll;
}
a {
  text-decoration: none;
}

.el-table__header-wrapper th {
  background-color: #f9f9f9 !important;
}
.el-table__fixed-header-wrapper th {
  background-color: #f9f9f9 !important;
}
.el-pagination-box {
  width: 100%;
  height: auto;
  margin-top: 46px;
  margin-bottom: 16px;
  text-align: right;
}
</style>
